/**
 * 设置代理
 */
 const { createProxyMiddleware } = require('http-proxy-middleware');

 module.exports = function(app) {
   app.use(
     '/ajax',//以ajax开头
     createProxyMiddleware({
       target: 'https://i.maoyan.com',
       changeOrigin: true,
     })
   );
 };